package com.portal.ai.controller;

import com.portal.common.core.web.domain.AjaxResult;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

@RestController
@RequestMapping("/llm/middle")
public class BotController {
    private static final String API_URL = "http://example.com/api/stream"; // 假设的API地址

    //    向大模型发起对话请求
    @PostMapping("/chat-message")
    public AjaxResult largeModelInvoke() {
    return AjaxResult.success();
    }
}
